<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "feed".
 *
 * @property integer $id
 * @property string $desc
 * @property string $company_name
 * @property string $contact
 * @property string $contact_name
 * @property string $deal_user_name
 * @property integer $deal_user_id
 * @property integer $static
 * @property integer $verify
 * @property string $pic_url1
 * @property string $pic_url2
 * @property string $pic_url3
 * @property string $video_url
 * @property string $add_time
 * @property string $upd_time
 * @property string $address
 * @property string $remark
 */
class Feed extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'feed';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['deal_user_id', 'static', 'verify'], 'integer'],
            [['add_time', 'upd_time'], 'safe'],
            [['desc', 'company_name', 'contact', 'deal_user_name', 'pic_url1', 'pic_url2', 'pic_url3', 'video_url','address','contact_name','remark'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'desc' => '描述',
            'company_name' => '公司名称',
            'contact' => '联系方式',
            'contact_name' => '联系人',
            'deal_user_name' => '处理人',
            'deal_user_id' => '处理人ID',
            'static' => '状态 1-未处理 2-处理中 3-已处理',
            'verify' => '审核情况  1-未审核  2-已审核',
            'pic_url1' => '名牌图片',
            'pic_url2' => '问题图片1',
            'pic_url3' => '问题图片2',
            'video_url' => '视频地址',
            'add_time' => '添加时间',
            'upd_time' => '更新时间',
            'address' => '地址' ,
            'remark'  => '备注' ,
        ];
    }
}
